package com.cm.study.spring.importt;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
//这里的这个@Service可要可不要，因为再ConfigurationClassParse中会把@Import 当作@Configuration处理
//返回选择的类信息
public class ImportSelectorService implements ImportSelector{

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		return new String[] {"com.cm.study.spring.importt.ImportService"};
	}
	
}
